<?php
//require('Header_iframe.php');
include('../db_connect.php');

$fb_user_id = (int)$_POST['user_id'];
$course_id = (int) $_POST['course_id'];
$ulink= $_POST['ulink'];
//get course id
$sql="delete from fb_reach_student_courses where student_ulink='$ulink' and course_id=$course_id";
$result = $db->Execute($sql);
$sql="delete from fb_user_courses where user_id=$fb_user_id and course_id=$course_id";
$result = $db->Execute($sql);
?>
